{extend name="public:layout" /}
{block name="title"}热门搜索{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li class="active"><i class="fa fa-hand-o-right"></i> 热门搜索</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="alert alert-warning">将显示在前台对应搜索框下面，前台点击时直接作为关键词进行搜索，多个关键词间请用半角逗号 "," 隔开</div>
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">商城热门搜索</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="hot[-1]" value="{$hot[-1]}" />
                    </div>
                </div>
                {volist name="moudleList" id="vo"}
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">{$vo.moudle_name}热门搜索</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="hot[{$vo.mid}]" value="{$hot[$vo['mid']]}" />
                    </div>
                </div>
                {/volist}
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        ajaxSubForm('#btnSub');
    })
</script>
{/block}